<?php
class Form_Album extends Zend_Form
{
    public function __construct ()
    {
        $this->setName('form_album');
        parent::__construct();
        
        $album = new Zend_Form_Element_Text('name');
        $album->setLabel('Album name (Max value 50)')
            ->setRequired(true)
            ->addValidator('NotEmpty')
            ->addFilter('StringTrim')
            ->addFilter('StripTags')
            ->setAttrib('maxLength', 50);
            
        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setLabel('Create');
        
        $this->addElements(array($album, $submit));
    }
}
?>

